//
//  AssessViewController.m
//  Globalstone
//
//  Created by 刘建峰 on 16/7/19.
//  Copyright © 2016年 yuf. All rights reserved.
//

#import "AssessViewController.h"

@interface AssessViewController ()<UITextViewDelegate>
@property (weak, nonatomic) IBOutlet UIView *navView;
@property (weak, nonatomic) IBOutlet UIScrollView *scroView;
@property (weak, nonatomic) IBOutlet UIView *backView;
@property (weak, nonatomic) IBOutlet UITextView *textView;
@property (weak, nonatomic) IBOutlet UILabel *placeholder;
@property (weak, nonatomic) IBOutlet UIButton *commitButton;

@end

@implementation AssessViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    [self initViewLayout];
}

- (void)initViewLayout{
    [self adaptiveViewLayout:self.view];
    [self adaptiveViewLayout:self.navView];
    [self adaptiveViewLayout:self.scroView];
    
    _scroView.contentSize = flexibleSize(CGSizeMake(0, 505), NO);
    _textView.delegate = self;
    _commitButton.layer.cornerRadius = 4*VerticalRatio();
    
    _backView.layer.cornerRadius =4*VerticalRatio();
}

- (IBAction)back:(id)sender {
    
    [self backBtn];
}


#pragma mark ==== 提交
- (IBAction)commitHandel:(id)sender {
}

#pragma mark - <UITextViewDelegate>


- (void)textViewDidChange:(UITextView *)textView{
    
    if (self.textView.text.length > 0) {
        self.placeholder.hidden = YES;
    }else{
        self.placeholder.hidden = NO;
    }
    
}



- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
